<div class="position">
	<div class="top">单身狗导航</div>
	<?php foreach ($categories as $category) { ?>
		<div class="list">
			<a href="javascript:;"><div class="list-title"><?php echo $category['CategoryName'] ?><i class="glyphicon glyphicon-chevron-down"></i></div></a>
			<ul class="list-group">
				<?php foreach ($category['List'] as $val) { ?>
					<li class="list-group-item"><span class="pre">&gt;</span><a class="<?php echo $categoryId == $val['CategoryId'] ? 'active' : ''; ?>" href="/single/category_<?php echo $val['CategoryId'] ?>.html"><?php echo $val['CategoryName'] ?></a></li>
				<?php } ?>
			</ul>
		</div>
	<?php } ?>
</div>